const path=require('path')

const config={
    mode: 'production',
    entry:'./src/index.ts',
    devtool: 'source-map',
    output:{
        path:path.resolve(__dirname),
        filename:'js/bundle.js'
    },
    module:{
        rules:[
            {
                test:/\.ts$/,
                use:'ts-loader',
                exclude:/node-modules/
            },{
                test:/\.js$/,
                loader:'./createjs-modify'
            }
        ]
    },
    resolve:{
        alias: {
            "@": path.resolve(__dirname, "src"),
        },
        extensions: [".ts"],
    },
    plugins:[
        //
    ]
}
module.exports=config